import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_application_1/utils/source_utils.dart';

class HeroTest2 extends StatefulWidget {
  @override
  _HeroTest2State createState() => _HeroTest2State();
}

class _HeroTest2State extends State<HeroTest2> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Hero 2'),
      ),
      body: Center(
          child: Hero(
        tag: 'avatar',
        child: ClipRRect(
          borderRadius: BorderRadius.circular(200),
          child: Image.asset(
            ImageUtils.wrapAssets('avatar.jpg'),
            fit: BoxFit.cover,
            width: 200,
            height: 200,
          ),
        ),
      )),
    );
  }
}
